package cn.aopmin.domain;

import lombok.Builder;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import java.util.Date;

/**
 * 用户实体类
 * @author 白豆五
 * @since 2024/7/19
 */
@Data
@Builder
@Document("user") //指定表名
public class User {
    @Id
    private String id;

    private String name;
    private int age;
    private String email;
    private String password;
    private Date createTime;
}